package org.wenhua.yuan.and.module_rn

import android.view.View
import com.facebook.react.ReactPackage
import com.facebook.react.bridge.NativeModule
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.uimanager.ReactShadowNode
import com.facebook.react.uimanager.ViewManager
import java.util.*

class JReactPackage : ReactPackage {
    /**ReactNative调用Native方法时重写*/
    override fun createNativeModules(reactContext: ReactApplicationContext): MutableList<NativeModule> {
        val modules = ArrayList<NativeModule>()
        modules.add(JRNBridge(reactContext))
        return modules
    }

    /**Native UI，作为ReactNative UI是重新*/
    override fun createViewManagers(reactContext: ReactApplicationContext): MutableList<ViewManager<View, ReactShadowNode<*>>> {

        return ArrayList()
    }


}